#! /usr/bin/python
# -*- coding: utf-8 -*-
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
# File to be edited by the user to manipulate the values wich are being ploted
#
# MAKE YOUR CHANGES IN THE EDITABLE AREA, SAVE THE FILE AND TYPE 'e' OVER THE
# GRAPH TO SEE THEM BEING APPLIED 'ON FLY'!
#_________________________________________________________
# A.Z. - 10/07 => Creation
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
import numpy
from pylab import *
from globalVariables import gv


# Don't change this line!
# This is just a reference copy. Anything changed in y will change gv.Cy
y = gv.Cy




#-------------------------------------------------------------------------------
#  You're supposed to make your changes here.
#  If you comment everything here Qview will plot the orignal data from the
# file.
#  You can use all the python power syntaxes and all the numpy functions.
#  Take a look at: http://www.scipy.org/Numpy_Example_List
#
#  y[0] is the upper plot
#  y[1] is the next one and so on ...
#  Be carefull to don't use an unexisting axis. Otherwise you'll have a crash!



# Output file name when you type "s" in the graph screen
# Don't forget to type "e" after changing the file name here!
# Default = input + ".changed"
#gv.ofile = "lixo"



# Simple division
#y[0] = y[0]/y[1]
#y[0] = y[0]/( y[1]+y[2] )


# Using numpy to divide y[0] by the normalized y[1]
#m1=numpy.mean(y[1])
#y[0] = y[0]/( y[1]/m1 )



# You can change the default values for the frequencies here
# If you comment everything, the programa use Nyquist values
#gv.nf   = gv.nt   # Number of frequencies
#gv.fmin = 0.0     # Minimum frequency  (1 over self.t units)
#gv.fmax = 0.03    # Maximum frequency  (1 over self.t units)




# End of your "editable" area
#-------------------------------------------------------------------------------
